package com.nbsoft.qhrp.report.web.model;

import java.util.Comparator;

public class RepRevStaModelComparator implements Comparator
{

	public int compare(Object o1, Object o2)
	{
		RepRevStaModel p1 = (RepRevStaModel) o1;
		RepRevStaModel p2 = (RepRevStaModel) o2;

		Double d1 = p1.getHjLjRuKu();
		Double d2 = p2.getHjLjRuKu();

		if (d1 == null)
		{
			d1 = new Double(0);
		}
		if (d2 == null)
		{
			d2 = new Double(0);
		}

		if (d1.doubleValue() < d2.doubleValue())
			return 1;
		else
			return 0;
	}

}
